#ifndef _Digital_Display_H_
#define _Digital_Display_H_

sbit LEDA0 = P1^0;
sbit LEDA1 = P3^7;
sbit LEDA2 = P3^6;

sbit LEDSER = P1^6;
sbit LEDRCK = P1^7;
sbit LEDSCK = P5^4;

extern uint8_t code Digital_Code[];
extern uint8_t code Digital_Code_dian[];
extern uint8_t DisplayModeFlag;
extern uint16_t DisplayModeCount;
extern void ROW(uint8_t h);
extern void In_Data(uint8_t m);

#define ROW1 LEDA2=0;LEDA1=0;LEDA0=0;  //0111 Y0
#define ROW2 LEDA2=0;LEDA1=0;LEDA0=1;  //1011 Y1
#define ROW3 LEDA2=0;LEDA1=1;LEDA0=0;  //1101 Y2
#define ROW4 LEDA2=0;LEDA1=1;LEDA0=1;  //1110 Y3
				 	 			
#define ROW5 LEDA2=1;LEDA1=0;LEDA0=0;  //1110 Y4
#define ROW6 LEDA2=1;LEDA1=0;LEDA0=1;  //1101 Y5
#define ROW7 LEDA2=1;LEDA1=1;LEDA0=0;  //1011 Y6
#define ROW8 LEDA2=1;LEDA1=1;LEDA0=1;  //0111 Y7



#endif